"""Add User.patronomic

Revision ID: b8d7c7eca9a6
Revises: abd3ffcfc522
Create Date: 2024-04-15 15:22:46.356637

"""

from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = "b8d7c7eca9a6"
# По п.6 задания 3, down_revision изменен:
down_revision: Union[str, None] = "0a4735d35d75"  # 'abd3ffcfc522'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column("users", sa.Column("patronomic", sa.String(length=50), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("users", "patronomic")
    # ### end Alembic commands ###
